From d4431167eef6d6a77b5efe2f962401f1652be6ca Mon Sep 17 00:00:00 2001 From: oliskoli Date: Tue, 26 Aug 2008 20:53:21 +0000 Subject: [PATCH] wfff: Replace invalid waypoint allocation. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3425 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/wfff_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/wfff_xml.c b/gpsbabel/wfff_xml.c index 4259cdca4..ffa4bb6ac 100644 --- a/gpsbabel/wfff_xml.c +++ b/gpsbabel/wfff_xml.c @@ -192,7 +192,7 @@ void wfff_e(const char *args, const char **unused) if ((ap_hdop>=1)&&(ap_hdop<50)) // Discard invalid GPS fix { - wpt_tmp = xcalloc(sizeof(*wpt_tmp), 1); + wpt_tmp = waypt_new(); if ( snmac ) { wpt_tmp->shortname = xstrdup(ap_mac); -- 2.30.2